const { query } = require("../query");
/**
 * 用户登录
 */
export const userLogin = async(array) => {
    let sql = "SELECT * FROM users WHERE userName=? and userPass=?"
    const res = await query(sql, array)
    return res
};
/**
 * 用户注册
 */
export const setUser = async(array) => {
    let sql = "INSERT INTO users(userName,userPass,userNi) VALUES (?,?,?)"
    const res = await query(sql, array)
    return res
}